﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace TestGraphic
{
    public partial class Form0 : Form
    {
        Form1 form1;
        Form3 form3;
        Form4 form4;
        Form5 form5;
        public Form0()
        {
            InitializeComponent();
        }

        private void button_Form1_Click(object sender, EventArgs e)
        {
            if(form1==null || form1.IsDisposed)
            {
                form1 = new Form1();
            }
            form1.Show();
            
        }

        private void button_Form3_Click(object sender, EventArgs e)
        {
            if (form3 == null || form3.IsDisposed)
            {
                form3 = new Form3();
            }
            form3.Show();
        }

        private void button_Form4_Click(object sender, EventArgs e)
        {
            if (form4 == null || form4.IsDisposed)
            {
                form4 = new Form4();
            }
            form4.Show();
            //new Thread((ThreadStart)delegate { Application.Run(new Form4()); }).Start();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (form5 == null || form5.IsDisposed)
            {
                form5 = new Form5();
            }
            form5.Show();

        }
    }
}
